package online.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;

/**
 * @Auther: 狼芒
 * @Date: 2021/8/23 23:50
 * @Descrintion: 用户实体类
 * @version: 1.0
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("system_user")
@ApiModel("用户登录实体类")
public class UserDao {
    @ApiModelProperty("用户ID")
    @TableId(type= IdType.AUTO)
    private Long id;//用户ID
    @ApiModelProperty("用户名")
    private String name;//用户名
    @ApiModelProperty("用户年龄")
    private Integer age;//用户年龄
    @ApiModelProperty("账号")
    private String account;//账号
    @ApiModelProperty("密码")
    private String password;//密码
}
